package com.ysp;

/**
 * 这个推荐使用
 */

/**
 * @author ysp
 */
public class Singleton04 {

    private Singleton04(){}

    private static class SingletonHolder{
        private static Singleton04 singleton04 = new Singleton04();
    }

    public static Singleton04 getInstance(){
        return SingletonHolder.singleton04;
    }
}
